#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from common.readelement import Element
from page_object.webpage import WebPage

deliveryjob = Element('jzsz/personal/delivery_fulltimejob')

class PersonalDeliveryFulltimeJobpage(WebPage):

    def open_fulltimelist(self):
        """打开全职列表"""
        self.is_click((deliveryjob['找全职']))

    def newpublish(self):
        """最新发布"""
        self.is_click((deliveryjob['最新发布']))

    def deliveryjob(self):
        """投递简历"""
        self.is_click((deliveryjob['投递简历']))

    def applyjob(self):
        """投递简历"""
        self.is_click((deliveryjob['申请']))

    def delivery_result(self):
        """验证登录"""
        return self.is_exists(deliveryjob['七天内不能重复申请'])